import {Component, OnInit, Input} from '@angular/core';

@Component({
  selector: 'app-head',
  templateUrl: './head.component.html',
  styleUrls: ['./head.component.less']
})
export class HeadComponent implements OnInit {
  @Input() title: string;

  constructor() {
  }

  ngOnInit() {
    console.log('取到了吗');
    console.log(this.title);
  }

}
